#ifndef _MAIN_WINDOW_
#define _MAIN_WINDOW_

#include <QtGui>
#include <qmapcontrol.h>

#include "OSRMRouter.h"

using namespace qmapcontrol;
class Mapviewer : public QMainWindow
{
    Q_OBJECT

public:
    Mapviewer(QWidget *parent = 0);

    ~Mapviewer();

private:
    QMenuBar* menuBar;
    QActionGroup* actionGroup;

    MapControl* mc;
    MapAdapter* mapadapter;
    Layer* mainlayer;
    OSRMRouter* router;

    void addZoomButtons();
    void addPoints();

private slots:
    void drawRoute(int error);

protected:
    virtual void resizeEvent ( QResizeEvent * event );
};

#endif
